import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index'
import store from '@/store/index'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import components from '@/components/index' //导入全局组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/styles/index.scss' // global css 
import '@/permission.ts' // permission control
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 创建全局属性对象
const globalProperties = {
    imageUrl: 'http://120.238.203.2:9527' + '/jeecg-boot/fileManage/imageV?fileUrl='
}
app.config.globalProperties.$globalProperties = globalProperties
app.use(router).use(store).use(components).use(ElementPlus).mount('#app')
